package com.ABdolphin.forum.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
@Data
public class User {
    private Long id;
    private String userName;
    @JsonIgnore//不参与序列化
    private String password;
    private String nickname;
    private String phoneNum;
    private String email;
    private Byte gender;
    @JsonIgnore
    private String salt;
    @JsonInclude(JsonInclude.Include.ALWAYS) //无论任何情况都参与JSON序列化
    private String avatarUrl;
    private Integer articleCount;
    private Byte isAdmin;
    private String remark;
    private Byte state;
    @JsonIgnore
    private Byte deleteState;
    private Date createTime;
    private Date updateTime;
}